<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021-12-22
  Time: 上午 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>孕婴网-登录</title>
</head>
<jsp:include page="../index/index-header.jsp"></jsp:include>
<script>
    $(document).ready(function(){
        if(window.location.href.indexOf("loginAction")>0)
        {
            alert("账号或密码错误，请重新登录！");
        }
    });
</script>
<body>
<div class="login" >
    <div class="col-lg-offset-4 col-md-offset-4 col-sm-offset-4 col-lg-4 col-md-4 col-sm-4" style="height: 300px;  border-radius: 5px; background-color: #EFEFEF; padding-top: 50px; padding-bottom: 15px">
        <form action="loginAction" method="post">
            <div class="form-list">
                <label class="control-label" for="txt_userId">用户名</label>
                <div class="input-group">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-user"></span>
                        </span>
                    <input class="form-control" name="userName" type="text" size="16" value="" style="background-color: white"  placeholder="User ID" required/>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label" for="txt_password">密码</label>
                <div class="input-group">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-lock"></span>
                        </span>
                    <input class="form-control" name="password" type="password" size="16" value="" style="background-color: white"  placeholder="Password" required/>
                </div>
            </div>
            <div class="form-group" style="margin-top: 30px">
                <input class="form-control btn btn-success" name="submit" type="submit" value="登录">
                <a href="register.jsp" style="float: right">现在注册>></a>
            </div>

        </form>

    </div>
</div>

   <jsp:include page="../index/index-foot.jsp"></jsp:include>
</body>
</html>
